home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGNG_C / CSUBR.LZH / GETINT.C < prev    next >
C/C++ Source or Header  |  1985-11-17  |  288b  |  18 lines

  1. #include "stdio.h"
  2.  
  3. /*******************************************************/
  4.  
  5. getint(fp)
  6. FILE       *fp;       /* File to process        */
  7. /*
  8.  * Read two binary bytes and treat them as reverse 2-byte number.
  9.  */
  10. {
  11.     char c;
  12.  
  13.     c = fgetc(fp);   
  14.     return(c+(256*fgetc(fp)));
  15. }
  16.  
  17.  
  18.